/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bean_session;

import entity_bean.Competence;
import entity_bean.CompetenceFacadeLocal;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 * @author Mamoune
 */

@Stateless
public class Competences implements CompetencesLocal {
    @EJB
    private CompetenceFacadeLocal competenceFacade;

    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")
    
    @Override
    public List<Competence> listCompetence() {
       System.out.println("sa marche");
        return competenceFacade.findAll();
         
    }
    
}
